package com.houtai.bean.dto.user.info;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

@ApiModel(value="个人用户实名认证所需参数", description="个人用户实名认证所需参数")
public class TdUserInfoInsertDto {

    @NotEmpty(message = "请输入真实姓名")
    @Length(min = 2, message = "姓名最少两个字")
    @Length(max = 50, message = "姓名最多50个字")
    @ApiModelProperty(value="真实姓名", name="real_name")
    private String real_name;

    @NotEmpty(message = "请输入身份证号")
    @Pattern(regexp = "^[1-9]\\d{5}[1-9]\\d{3}((0[1-9])|(1[0-2]))(([0|1|2][1-9])|3[0-1])((\\d{4})|\\d{3}X)$", message = "请输入正确身份证号")
    @ApiModelProperty(value="身份证号", name="id_no")
    private String id_no;

    @NotNull(message = "请输入性别")
    @Min(value = 1, message = "请上传正确的性别")
    @Max(value = 2, message = "请上传正确的性别")
    @ApiModelProperty(value="性别 1男2女", name="sex")
    private int sex;

    @NotNull(message = "家乡省id不能为空")
    @ApiModelProperty(value="家乡省id", name="province_id")
    private int province_id;

    @NotNull(message = "家乡市id不能为空")
    @ApiModelProperty(value="家乡市id", name="city_id")
    private int city_id;


    @NotNull(message = "家乡数据id不能为空")
    @ApiModelProperty(value="职业数据id", name="profession_id")
    private int profession_id;

    @NotEmpty(message = "请输入用户名")
    @Length(min = 1, max = 30, message = "用户名最多30个字符")
    @ApiModelProperty(value="用户名", name="nick_name")
    private String nick_name;
    @NotEmpty(message = "请输入签名")
    @Length(min = 1, max = 200, message = "签名最多200个字符")
    @ApiModelProperty(value="签名", name="signature")
    private String signature;
    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }

    public String getId_no() {
        return id_no;
    }

    public void setId_no(String id_no) {
        this.id_no = id_no;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getProvince_id() {
        return province_id;
    }

    public void setProvince_id(int province_id) {
        this.province_id = province_id;
    }

    public int getCity_id() {
        return city_id;
    }

    public void setCity_id(int city_id) {
        this.city_id = city_id;
    }

    public int getProfession_id() {
        return profession_id;
    }

    public void setProfession_id(int profession_id) {
        this.profession_id = profession_id;
    }

    public String getNick_name() {
        return nick_name;
    }

    public void setNick_name(String nick_name) {
        this.nick_name = nick_name;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }
}
